﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace LoRAExplorer.Framework
{
    public class ModelMetadata
    {
        [JsonPropertyName("modelspec.architecture")]
        public string Modelspec_Architecture { get; set; }

        public static ModelMetadata GetMetadata(string str)
        {
            ModelMetadata result = null;
            try
            {
                result = System.Text.Json.JsonSerializer.Deserialize<ModelMetadata>(str);
            }
            catch (Exception ex)
            {
                int meep = 1;
                //throw ex;
            }
            return result;
        }
    }
}
